<%@page import="com.mmy.domain.sys.TSysUser"%>
<%@page import="com.mmy.domain.visa.TVisaBase"%>
<%@page import="com.mmy.domain.constzone.TConstZone"%>
<%@page import="com.mmy.domain.visa.TVisaOrder"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
 <%
 	TSysUser tSysUser = (TSysUser)session.getAttribute("tSysUser");
%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
</head>
	<body>
<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>

		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<main class="at-padding-large-bottom">
			<article>
				<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
					<div class="page-header container">
						<div class="row">
							<div class="span-5 col">
								<h1><label>签证管理</label></h1>
							</div>	
							
						 </div >
					</div>
				</header>
				<section class="container">
					
					
					<!-- 签证基本信息 -->
					<div class="information" >
					
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>签证基本信息
						</h4>
					<div class="input-container">
					
					<table class="info-table">
					
								<tr><th><label>签证名称</label></th>
								<td colspan="5">
					<input type="hidden" id="VisaID" name="VisaID" value="${vVisaBase.getVisaID()}">
									<label>${vVisaBase.getVisaName()}</label>
								</td></tr>
								<tr>
								
								<th><label>区域</label></th>
								<td colspan="2">
								 <label> ${vVisaBase.getZoneName()}</label>
								</td>
								<th><label>办理周期</label></th>
								<td colspan="2">
									<label>工作日${vVisaBase.getDay()}天</label>
									
								</td>
								
							</tr>
							<tr >
								<th><label>租赁底价</label></th>
								<td colspan="2">
								<label>	${vVisaBase.getFloor()}</label>
								</td>
								
								<th><label>租赁同业价</label></th>
								<td colspan="2">
									<label>${vVisaBase.getPeer()}</label>
								</td>
								
							</tr>
							<tr>
							<th><label>对外报价</label></th>
								<td colspan="5">
									<label>${vVisaBase.getPrice()}</label>		 
								</td>
							</tr>
						
							<tr>
								<th><label>备注</label></th>
								<td colspan="5">
									<label>${vVisaBase.getMemo()}</label>
								</td>
								
							</tr>
						
						</table>
						</div>
						<!-- 签证拆料信息 -->
	<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>签证所需材料信息
						</h4>
					<div class="input-container">
						<div class="select-condition">
							
								<div class="at-float-right">
							<input type="button" class="btn" value="修改"  onclick="updateVisaStuff()"/>
							</div>
							
						</div>
				<table class="info-table">
					<!-- 循环显示每个用户的信息 用jstl-->
      				  <c:forEach items="${newTVisaStuff}" var="tVisaStuff" varStatus="status">		<tr>
<th rowspan="2"><label >序号</label></th>
<td rowspan="2"><label >${tVisaStuff.getNo() }</label></td>
<th ><label >材料名称</label></th>
<td > <label >${tVisaStuff.getStuffName() }</label></td>
<th ><label>所需数量</label></th>
<td ><label >${tVisaStuff.getNumber() }</label></td>
</tr>
<tr>
<td><label >备注:</label></td>
<td colspan="3" ><label >${tVisaStuff.getMemo() }</label></td>
</tr>


</c:forEach>
</table>

			</div>
						
						
							<!-- 签证预留信息 -->
				<hr style="FILTER: alpha(opacity=100,finishopacity=0,style=3); margin: 15px; " width=100%; color=#F9F6E5 SIZE=3></h>
			
				
				<form action="searchreservevisaindex" class="info-form" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>签证预留信息管理
						</h4>
				<div >
				
				<input type="button" value="修改" class="btn at-float-right" onclick="updateReserveVisa()"> 
				<input type="button" class="btn at-float-right" value="转订单" onclick="payOrderVisa()">
				<input type="button" class="btn at-float-right" value="取消预留" onclick="cancelReserveVisa()">
				<table class="info-table" >
					<tr>
						<th>
							<input type="checkbox" id="ckall" name="ckall" onclick="ckAll(this);">
						</th>
						<th>预留人姓名</th>
						<th>预留联系方式</th>
						<th>备注</th>			
					
					</tr>
					<c:forEach var="ol" items="${orderlist}">
					
					<tr>
						<c:if test="${ol.getOrderState() == 0}">
						<td>
							<input type="checkbox" name="ckone" value="${ol.getID()}" onclick="ckOne(this)">
						</td>
						<td>${ol.getReserveName()}</td>
						<td>${ol.getReserveTel()}</td>
						<td>${ol.getMemo()}</td>
						</c:if>
					</tr>
					
				</c:forEach>
					
				</table>
				<select>
								<option>10</option>
								<option>5</option>
								<option>2</option>
							</select>
							<span>
								 条   共1条 1/1
							</span>
							<span class="page-span">
								1 转到<input type="text" class="input-width3"/>
								页 <input type="button" class="btn" value="GO"  />
							</span>	
				</div>
				</form>
				
				
				<!-- 签证已收款订单信息 -->
				<hr style="FILTER: alpha(opacity=100,finishopacity=0,style=3); margin: 15px; " width=100%; color=#F9F6E5 SIZE=3></h>
			
				
				<form action="searchordervisaindex" class="info-form" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>签证已收款订单信息管理
						</h4>
				<div >
				
				<input type="button" value="修改" class="btn at-float-right" onclick="updateOrderVisa()"> 
				<input type="button" class="btn at-float-right" value="退款" onclick="cancelOrderVisa()">
				<input type="button" value="材料整理" class="btn at-float-right" onclick="updateVisaCollection()"> 
				<table class="info-table" >
					<tr>
						<th>
							<input type="checkbox" id="ckall1" name="ckall1" onclick="ckAll1(this);">
						</th>
						<th>订单人姓名</th>
						<th>订单联系方式</th>
						<th>备注</th>			
					
					</tr>
					<c:forEach var="ol" items="${orderlist}">
					
					<tr>
						<c:if test="${ol.getOrderState() == 2}">
						<td>
							<input type="checkbox" name="ckone1" value="${ol.getID()}" onclick="ckOne1(this)">
						</td>
						<td><a href = "ordervisainfo?iID=${ol.getID()}">${ol.getOrderName()}</a> </td>
						<td>${ol.getOrderTel()}</td>
						<td>${ol.getMemo()}</td>
						</c:if>
					</tr>
					
				</c:forEach>
					
				</table>
				<select>
								<option>10</option>
								<option>5</option>
								<option>2</option>
							</select>
							<span>
								 条   共1条 1/1
							</span>
							<span class="page-span">
								1 转到<input type="text" class="input-width3"/>
								页 <input type="button" class="btn" value="GO"  />
							</span>	
				</div>
				</form>
				
				
				
				
				<!-- 签证取消预留信息 -->
				<hr style="FILTER: alpha(opacity=100,finishopacity=0,style=3); margin: 15px; " width=100%; color=#F9F6E5 SIZE=3></h>
			
				
				<form action="searchdelreservevisa" class="info-form" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>签证取消预留信息管理
						</h4>
				<div >
				
				<input type="button" value="删除" class="btn at-float-right" onclick="delReserveVisa()"> 
				<table class="info-table" >
					<tr>
						<th>
							<input type="checkbox" id="ckall3" name="ckall3" onclick="ckAll3(this);">
						</th>
						<th>预留人姓名</th>
						<th>预留联系方式</th>
						<th>备注</th>			
					
					</tr>
					<c:forEach var="ol" items="${orderlist}">
					
					<tr>
						<c:if test="${ol.getOrderState() == 3}">
						<td>
							<input type="checkbox" name="ckone3" value="${ol.getID()}" onclick="ckOne3(this)">
						</td>
						<td>${ol.getReserveName()}</td>
						<td>${ol.getReserveTel()}</td>
						<td>${ol.getMemo()}</td>
						</c:if>
					</tr>
					
				</c:forEach>
					
				</table>
				<select>
								<option>10</option>
								<option>5</option>
								<option>2</option>
							</select>
							<span>
								 条   共1条 1/1
							</span>
							<span class="page-span">
								1 转到<input type="text" class="input-width3"/>
								页 <input type="button" class="btn" value="GO"  />
							</span>	
				</div>
				</form>
				
				
				
				<!-- 签证退款订单信息 -->
				<hr style="FILTER: alpha(opacity=100,finishopacity=0,style=3); margin: 15px; " width=100%; color=#F9F6E5 SIZE=3></h>
			
				
				<form action="searchdelordervisa" class="info-form" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>签证取消订单信息管理
						</h4>
				<div >
				
				<input type="button" value="删除" class="btn at-float-right" onclick="delOrderVisa()"> 
				<table class="info-table" >
					<tr>
						<th>
							<input type="checkbox" id="ckall4" name="ckall4" onclick="ckAll4(this);">
						</th>
						<th>订单人姓名</th>
						<th>订单联系方式</th>
						<th>备注</th>			
					
					</tr>
					<c:forEach var="ol" items="${orderlist}">
					
					<tr>
						<c:if test="${ol.getOrderState() == 4}">
						<td>
							<input type="checkbox" name="ckone4" value="${ol.getID()}" onclick="ckOne4(this)">
						</td>
						<td>${ol.getOrderName()}</td>
						<td>${ol.getOrderTel()}</td>
						<td>${ol.getMemo()}</td>
						</c:if>
					</tr>
					
				</c:forEach>
					
				</table>
				<select>
								<option>10</option>
								<option>5</option>
								<option>2</option>
							</select>
							<span>
								 条   共1条 1/1
							</span>
							<span class="page-span">
								1 转到<input type="text" class="input-width3"/>
								页 <input type="button" class="btn" value="GO"  />
							</span>	
				</div>
				</form>
						
					
						
			
		
		
			</section>
			</article>
			
		</main>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
	</div>

	<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>

</html>